/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  outline: none;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-size: 14px;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
  margin: 0;
}

/* A elements that don't have a class get default styles */
a {
  text-decoration: none;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

// 文字隐藏加...效果
.single-line-ellipsis {
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.multiple-line-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.double-line-ellipsis {
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.triple-line-ellipsis {
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

// 时间
.time-text {
  font-size: 12px;
  color: #888888;
  margin: 10px 0 20px;
}

// 闪图
.swiper-container {
  --swiper-theme-color: #ff6600; /* 设置Swiper风格 */
  --swiper-navigation-color: #00ff33; /* 单独设置按钮颜色 */
  --swiper-navigation-size: 30px; /* 设置按钮大小 */
}

// 面包屑
.el-breadcrumb {
  margin: 10px 0 20px;
}

// 手风琴
.el-collapse {
  border-top: none;
  .el-collapse-item__header {
    font-size: 16px;
    padding-left: 20px;
    .title-header;
  }
  .el-collapse-item__content {
    padding: 10px;
  }
}

.el-card__body {
  padding: 10px;
}

.el-table .cover {
  width: 70%;
  margin: auto;
}

.btn-box {
  width: 100%;
  display: flex;
  margin-bottom: 10px;

  .btn-box-right {
    margin-left: auto;
  }
}

.sortable-chosen {
  border-color: black !important;
  background-color: rgba(255, 0, 0, 0.3);
}

.danger-text {
  color: #f56c6c !important;
}

.drag-header {
  width: 100%;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-left: 5px;
  color: #fff;
  overflow: hidden;
  transition: all 0.2s;
  position: relative;

  &:hover {
    background-color: #fab6b6;
  }

  &:before {
    content: '按住我拖动顺序';
    width: 100%;
    height: 30px;
    line-height: 1;
    position: relative;
    font-size: 20px;
    display: flex;
    align-items: center;
  }
}

.cover-text {
  display: flex;
  .cover-img {
    margin-right: 10px;
    width: 100px;
    height: 80px;
  }
}

.tips {
  color: #dd0000;
  font-size: 12px;
}

.card-title {
  display: flex;
  align-items: center;

  h2 {
    margin-left: 5px;
    color: #333;
  }

  &-rbtn {
    margin-left: auto;
  }
}

.router-tab__container {
  background-color: #f4f4f2;
  min-height: 100vh;
  overflow-y: hidden;
}

.title-header {
  background-color: #222222;
  color: white;
}
